﻿#ifndef JZBASE_DIALOG_H_
#define JZBASE_DIALOG_H_

#include <QDialog>
#include <QDialogButtonBox>
#include "UiCommon.h"

class JZBaseDialog : public QDialog
{
    Q_OBJECT

public:
    JZBaseDialog(QWidget *parent = Q_NULLPTR);
    ~JZBaseDialog();           

protected:
    enum {
        Button_Ok,
        Button_Cancel,
    };	
    virtual void keyPressEvent(QKeyEvent *event) override;\

    QWidget *centralWidget();
    void setCentralWidget(QWidget *w);

    QWidget *m_mainWidget;	
    QDialogButtonBox *m_btnBox;
};

#endif
